package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface SpitDao extends MongoRepository<Spit,String> {
    //mongodb查询类似于JPA查询
    //当前为根据方法名查询
    Page<Spit> findByParentid(String parentid, Pageable pageable);
}
